<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org/">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
  <div th:replace="header::common"></div>
  <style>
    .center {
      padding-left: 5px;
      padding-right: 5px;
      padding-top: 3px;
    }
    .value {
      width: 51%;
      padding-top: 10px;
    }
  </style>
</head>
<body class="center">
<form class="layui-form layui-form-pane" action="">
  <div class="layui-form-item">
    <label class="layui-form-label">头像</label>
    <div class="layui-input-block">
      <img width="100px" height="100px" th:src="|/pic/${user.image}|">
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">ID</label>
    <div class="layui-input-block">
      <span type="text" lay-verify="required" class="layui-input value" th:text="${user.id}"></span>
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">用户名</label>
    <div class="layui-input-block">
      <span type="text" lay-verify="required" class="layui-input value" th:text="${user.name}"></span>
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">昵称</label>
    <div class="layui-input-block">
      <span type="text" lay-verify="required" class="layui-input value" th:text="${user.nickName}"></span>
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">邮箱</label>
    <div class="layui-input-block">
      <span type="text" lay-verify="required" class="layui-input value" th:text="${user.email}"></span>
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">联系电话</label>
    <div class="layui-input-block">
      <span type="text" lay-verify="required" class="layui-input value" th:text="${user.phone}"></span>
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">身份</label>
    <div class="layui-input-block">
      <span type="text" lay-verify="required" class="layui-input value" th:if="${user.role==2}">普通管理员</span>
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">创建时间</label>
    <div class="layui-input-block">
      <span type="text" lay-verify="required" class="layui-input value" th:text="${#dates.format(user.createTime, 'yyyy-MM-dd hh:mm')}"></span>
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">更新时间</label>
    <div class="layui-input-block">
      <span type="text" lay-verify="required" class="layui-input value" th:text="${#dates.format(user.updateTime, 'yyyy-MM-dd hh:mm')}"></span>
    </div>
  </div>
</form>
</body>
</html>